﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace SPMS.Web.Models
{
    public class LoginModel
    {
        [Required(ErrorMessage = "登录名不能缺省或者为空字符串")]
        [Display(Name = "登录名")]
        public string LoginName
        {
            get;
            set;
        }

        [Required(ErrorMessage = "密码不能缺省或者为空字符串")]
        [DataType(DataType.Password)]
        [Display(Name = "密码")]
        public string Password
        {
            get;
            set;
        }

        [Display(Name = "一周之内免登录")]
        public bool RememberMe { get; set; }
    }
}